<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta property="og:type" content="website">
<meta property="og:title" content="smallmuou&#39;s blog">
<meta property="og:url" content="http://smallmuou.gitee.io/blog/page/18/index.html">
<meta property="og:site_name" content="smallmuou&#39;s blog">
<meta property="og:locale" content="zh-Hans">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="smallmuou&#39;s blog">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://smallmuou.gitee.io/blog/page/18/"/>





  <title>smallmuou's blog</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left 
  page-home">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">smallmuou's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"><a href="https://github.com/smallmuou">https://github.com/smallmuou</a></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blog/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/15/2015-04-15-TestFlight试用感想/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/15/2015-04-15-TestFlight试用感想/" itemprop="url">TestFlight试用感想</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-15T00:00:00+08:00">
                2015-04-15
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>一提到iOS APP的测试，估计很多iOS开发者（当然也包括我），肯定在心里头暗骂“好坑”，确实对于一个未发布的APP来说，要测试它，根据以往我的经验，只有以下2个途径来安装APP:</p>
<ul>
<li>越狱（好不安全^-^），直接安装ipa</li>
<li>加入开发设备白名单（一个开发账号，总共只能加100，我可不舍得，而且加了还不能移除，好坑）</li>
</ul>
<p>对于第一种来说，变得越来越不现实了，现在发现周边很多同事都不越狱，于是乎总不能为了让他们测试，把他们设备越狱了吧（显然要被揍）；而对于第二种，先不说开发设备数量限制，光操作就很麻烦，获取UUID，添加UUID，重新生成profile，重新编译，重新打包；（感觉更坑）。前些天听一个同事说，有个TestFilight可以在APP未发布时，就能发邮件邀请其他测试人员。激动是不用说了，果断试了一下，还真是，下面聊聊我的试用感谢.</p>
<h3 id="TestFlight为何方神圣？"><a href="#TestFlight为何方神圣？" class="headerlink" title="TestFlight为何方神圣？"></a>TestFlight为何方神圣？</h3><p>查阅谷歌，了解到TestFlight原先是由Burstly推出的，2014年被苹果大神（Apple）收购了，并在iOS中发布了一个叫做TestFlight的新玩意，用于将Beta测试流水化。TestFlight提供内部测试及外部测试，内部测试最多为25人，外部测试可达1000人，但需要经过苹果审核. 感觉还是内部好，方便，不用经过Apple.</p>
<h3 id="怎么用？"><a href="#怎么用？" class="headerlink" title="怎么用？"></a>怎么用？</h3><ul>
<li><p>添加测试员<br>Web登入iTunes Connect，当然前提是你必须拥有一个Apple Developer Account, 进入”用户职能”，可以看到”iTunes Connect 用户”，”TestFilght Beta版测试员”，“沙箱技术测试员”，进入”iTunes Connect 用户”，点击“+”，添加相应用户</p>
</li>
<li><p>测试员会收到相应的激活邮件<br>激活信类似如下，点击“activate your account”激活<br><pre><br>iTunes Connect<br>Welcome to iTunes Connect.<br>You have successfully created an iTunes Connect account for <a href="mailto:xuwenfa@star-net.cn" target="_blank" rel="noopener">xuwenfa@star-net.cn</a>.</pre></p>
</li>
</ul>
<p>To complete the process, activate your account using the password already associated with this Apple ID.</p>
<p>If you have any questions about this email, please use Contact Us.</p>
<p>Regards,<br>The iTunes Store team<br></p>
<ul>
<li>生效测试员<br>再进入”TestFilght Beta版测试员”，勾选刚添加的用户，添加测试员过程就OVER了</li>
<li>测试员安装TestFlight（iOS7以下就升级吧，因为苹果最大，啥都得听他的）</li>
<li>预发行APP<br>进入“我的App”，点击“预发行”，可以看到你用Application Loader上传的应用，点击“内部测试员”，勾选测试员，之后回到“构建版本”，打开“TestFlight Beta 测试”开关.</li>
<li>下载应用<br>测试员会收到测试邀请信，“TestFlight: You’re invited to test xxx”，点击“Open in TestFlight”，系统会自动跳转到TestFlight，此时测试者就可以看到相应的APP。（请用iOS设备邮箱打开邮件，否则怎么跳转）<br><img src="http://7ximmr.com1.z0.glb.clouddn.com/TestFlight Invite.png" alt="image"></li>
</ul>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/15/2015-04-15-论XCODE之Architectures、Valid Architectures和Build Active Architecture Only/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/15/2015-04-15-论XCODE之Architectures、Valid Architectures和Build Active Architecture Only/" itemprop="url">论XCODE之Architectures、Valid Architectures和Build Active Architecture Only</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-15T00:00:00+08:00">
                2015-04-15
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>对于自己不懂的东西，总想弄明白，可有时又没有那么多时间，于是可能就不了了之，就像今天要讲的”Architectures”, 之前弄明白了“Build Active Architecture Only”的含义，可是对于“Architectures”和“Valid Architectures”，确是云里雾里的，今天总算抽点时间把它弄明白了.</p>
<h2 id="1-解释"><a href="#1-解释" class="headerlink" title="1. 解释"></a>1. 解释</h2><h3 id="Build-Active-Architecture-Only"><a href="#Build-Active-Architecture-Only" class="headerlink" title="Build Active Architecture Only"></a>Build Active Architecture Only</h3><p> 这个比较简单，是指只编译当前激活的CPU架构（即当前调试的设备）</p>
<h3 id="Architectures-想"><a href="#Architectures-想" class="headerlink" title="Architectures     - 想"></a>Architectures     - 想</h3><p> Architectures是指你的product想编译的CPU架构</p>
<h3 id="Valid-Architectures-能"><a href="#Valid-Architectures-能" class="headerlink" title="Valid Architectures - 能"></a>Valid Architectures - 能</h3><p>Valid Architectures是指你能编译的CPU架构</p>
<h2 id="2-举例-“理想很丰满，现实很骨感”"><a href="#2-举例-“理想很丰满，现实很骨感”" class="headerlink" title="2. 举例 - “理想很丰满，现实很骨感”"></a>2. 举例 - “理想很丰满，现实很骨感”</h2><p>关于上面的阐述，大家应该就比较清楚了，这里举一个浅显的例子:</p>
<pre>
Architectures好比“梦想”，我想当CEO、想当产品经理、想当BOSS、想当程序猿
Valid Architectures好比“现实”，可是我只能当程序猿（因为其他你都不会^_^）
那么最终结果呢，那只能当程序猿了
</pre>

<h2 id="3-错误分析"><a href="#3-错误分析" class="headerlink" title="3. 错误分析"></a>3. 错误分析</h2><p>看了上面的阐述，就能很容易地知道下面错误的原因:</p>
<p><pre><br>Check dependencies<br>No architectures to compile for (ARCHS=armv7s, VALID_ARCHS=arm64).<br></pre><br>上述错误可以典型的认为是“想一出，做一出”，你说能不出错嘛！！！！！关于此问题，请不要问我如何解决(就是如此任性^_^)</p>
<h2 id="4-综述"><a href="#4-综述" class="headerlink" title="4. 综述"></a>4. 综述</h2><p>通过上面的描述，我想大家应该很清楚了“Architectures”与“Valid Architectures”的关系，于是这里有一个公式：</p>
<p>Product = Architectures 交 Valid Architectures，即最终应用程序支持的CPU架构是取“Architectures”与“Valid Architectures”的交集.</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/10/2015-04-10-新版博客主题上线啦/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/10/2015-04-10-新版博客主题上线啦/" itemprop="url">新版博客主题上线啦</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-10T00:00:00+08:00">
                2015-04-10
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/其他/" itemprop="url" rel="index">
                    <span itemprop="name">其他</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>今天终于完成了新版博客主题Jekyll-Pithy的开发工作，果断上线之，发现还是不错（主要是原来那一版太丑了^_^）. 大家可以到<a href="https://github.com/smallmuou/Jekyll-Pithy.git" target="_blank" rel="noopener">这里</a>下载最新的主题，如有任何问题，可以发邮件给我(<a href="mailto:lvyexuwenfa100@126.com" target="_blank" rel="noopener">lvyexuwenfa100@126.com</a>).</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/09/2015-04-09-给Firefox添加搜索引擎/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/09/2015-04-09-给Firefox添加搜索引擎/" itemprop="url">给Firefox添加搜索引擎</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-09T00:00:00+08:00">
                2015-04-09
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/其他/" itemprop="url" rel="index">
                    <span itemprop="name">其他</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>Firefox已经提供了很多搜索引擎，包括Google、百度、Bing、维基百科等等，但有时我们想添加自己的搜索引擎，昨天找了下，发现Firefox有个好用的插件“Add to Search Bar”，可以添加任意搜索引擎. 下面我将Google克隆站<a href="http://www.clonegoogle.com/添加为默认搜索引擎" target="_blank" rel="noopener">http://www.clonegoogle.com/添加为默认搜索引擎</a>.</p>
<ul>
<li>访问<a href="http://www.clonegoogle.com/" target="_blank" rel="noopener">http://www.clonegoogle.com/</a></li>
<li>右击<a href="http://www.clonegoogle.com的搜索栏，选择“新增至搜索列”" target="_blank" rel="noopener">www.clonegoogle.com的搜索栏，选择“新增至搜索列”</a></li>
<li>在搜索栏中“更改搜索设置”，将<a href="http://www.clonegoogle.com设置为默认" target="_blank" rel="noopener">www.clonegoogle.com设置为默认</a></li>
</ul>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/08/2015-04-08-线程局部存储/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/08/2015-04-08-线程局部存储/" itemprop="url">线程局部存储</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-08T00:00:00+08:00">
                2015-04-08
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/其他/" itemprop="url" rel="index">
                    <span itemprop="name">其他</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>在移植linphone代码时，发现在注册SIP账号时，经常报如下错误:</p>
<p><pre><br>There is no object pool created in thread [xxxxx].Use belle_sip_object_pool_push() to create one. Unowned objects not unref’d will be leaked.<br></pre><br>经过调试发现是pthread_getspecific和pthread_setspecific出现了问题，原来想我只设置了一次pthread_setspecific，而发现有时pthread_getspecific获取的值是不一样的，当获取到得值为NULL，则报如上错误；而在其中我并没有进行pthread_key_delete和pthread_setspecific操作，为何相同key下，pthread_getspecific获取的值不一样呢？</p>
<p>仔细阅读了 thread-specific data management，发现这是一个线程局部存储，即同一线程内使用的，不同线程是不一样的，因此我将注册SIP账号放在<strong>主线程</strong>，就OK.</p>
<h2 id="TLS"><a href="#TLS" class="headerlink" title="TLS"></a>TLS</h2><p>线程局部存储TLS即Thread Local Storage，顾名思义即线程内部数据，大家都知道在同一进程下的线程是共享内存地址的，而当希望线程内部需要保存自己的数据，则可以使用线程内部数据. </p>
<p>大家想想，在没有TLS之前，线程内不同函数需要共享内存，则一般使用全局变量和静态变量，全局变量和静态变量的引入必然会破坏封装性，于是个人认为引入TLS最主要的好处应该是<strong>保证封装性</strong>。</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/07/2015-04-07-iOS8 Size Class形象图/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/07/2015-04-07-iOS8 Size Class形象图/" itemprop="url">iOS8 Size Class形象图</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-07T00:00:00+08:00">
                2015-04-07
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p><img src="http://cc.cocimg.com/api/uploads/20141217/1418795540826221.png" alt="image"></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/04/02/2015-04-02-论iOS应用之中间层构建策略/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/04/02/2015-04-02-论iOS应用之中间层构建策略/" itemprop="url">论iOS应用之中间层构建策略</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-02T00:00:00+08:00">
                2015-04-02
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>在iOS应用开发中，我们一般会将应用分为3层: View - Controller - Model, 我们这里所说的中间层其实是指Model层。对于Model层我们还可以细分为2层: Manager - Data，即原始数据+数据接口；对于Manager层，在我们原先的做法，是对于各种Data我们建议独立的Manager，如NetManager、ThumbManager、FileManager。随着功能的不断添加，会创建越来越多的Manager，而这些Manager都是独立，无从管理，从而就会显得整个工程比较混乱。这里我提出一种来管理新的解决思路 - 服务模型. 各种Model通过服务来管理，只有对此服务进行注册，启动后才能提供相应的服务.</p>
<h4 id="前提"><a href="#前提" class="headerlink" title="前提"></a>前提</h4><ul>
<li><p>获取所有子类</p>
<pre>
\+ (NSArray *) allSubclasses
{
  Class myClass = [self class];
  NSMutableArray *mySubclasses = [NSMutableArray array];

  unsigned int numOfClasses;
  Class *classes = objc_copyClassList(&numOfClasses);
  for (unsigned int ci = 0; ci < numOfClasses; ci++) {
      Class superClass = classes[ci];
      do {
          superClass = class_getSuperclass(superClass);
      } while (superClass && superClass != myClass);
      if (superClass)
          [mySubclasses addObject: classes[ci]];
  }
  free(classes);

  return mySubclasses;
}
</pre>

</li>
</ul>
<h4 id="服务中心-ServiceCenter"><a href="#服务中心-ServiceCenter" class="headerlink" title="服务中心(ServiceCenter)"></a>服务中心(ServiceCenter)</h4><p>ServiceCenter.h</p>
<pre>
\#import <foundation foundation.h="">
\#define __serviceCenter SINGLETON_CALL(ServiceCenter)

@interface ServiceCenter : NSObject
SINGLETON_AS(ServiceCenter)

/**
 * 启动服务，用于启动所有的Serivce服务
 *
 */
\- (void)startAllServices;

/**
 * 关闭服务，用于关闭所有的Serivce服务
 *
 */
\- (void)stopAllServices;

\- (void)setup;

\- (void)teardown;

</foundation></pre>
ServiceCenter.c
<pre>
@interface ServiceCenter() {
    NSMutableArray* _serviceArray;
}
@end

@implementation ServiceCenter

SINGLETON_DEF(ServiceCenter)

\- (instancetype)init
{
    self = [super init];
    if (self) {
        _serviceArray = [NSMutableArray array];
    }
    return self;
}

\- (void)setup {
    NSArray* classes = [BaseService allSubclasses];
    for (Class cls in classes) {
        BaseService* service = [[cls alloc] initWithServiceCenter:self];
        [_serviceArray addObject:service];
    }
}



\- (void)teardown {
    for (BaseService* service in _serviceArray) {
        [service stop];
    }
    [_serviceArray removeAllObjects];
}

\- (void)startAllServices
{
    for (BaseService* service in _serviceArray) {
        [service start];
    }
}

\- (void)stopAllServices
{
    for (BaseService* service in _serviceArray) {
        [service stop];
    }
}

@end
</pre>

<h4 id="服务基类"><a href="#服务基类" class="headerlink" title="服务基类"></a>服务基类</h4><p>BaseService.h</p>
<pre>
@interface BaseService : NSObject

@property(nonatomic, strong) ServiceCenter*  serviceCenter;
\- (id)initWithServiceCenter:(ServiceCenter*)serviceCenter;

\- (void)start;

\- (void)stop;

@end
</pre>
BaseService.c
<pre>
@implementation BaseService

\- (id)initWithServiceCenter:(ServiceCenter*)serviceCenter
{
    self = [super init];
    if (self) {
        self.serviceCenter = serviceCenter;
    }
    return self;
}

\- (void)start {
    //启动服务，子类实现
}

\- (void)stop {
    //停止服务，子类实现
}

@end
</pre>

<h4 id="各种服务子类"><a href="#各种服务子类" class="headerlink" title="各种服务子类"></a>各种服务子类</h4><ul>
<li>设计思路:<ul>
<li>通过类Category特性，针对每个类，定义ServiceCenter的相应扩展</li>
<li>在ServiceCenter扩展中定义相应的方法接口及属性，其中属性可以通过类关联构建（objc_getAssociatedObject和objc_setAssociatedObject） </li>
<li>当ServiceCenter扩展接口需要访问该服务子类，则可以定义该服务的属性</li>
</ul>
</li>
<li><p>样例</p>
<p>  DataService.h</p>
  <pre>
@class DataService;
@interface ServiceCenter (DataService)
@property (nonatomic, strong) DataService* dataService;
//其他接口和属性声明
@end
@interface DataService : BaseService
//接口和属性
@end
</pre>

<p>  DataService.c</p>
  <pre>
@implementation ServiceCenter (DataService)
CATEGORY_PROPERTY_GET_SET(DataService*, dataService, setDataService:)
//其他接口和属性实现
@end
@implementation DataService
\- (id)initWithServiceCenter:(ServiceCenter*)serviceCenter {
  self = [super initWithServiceCenter:serviceCenter];
  if (self) {
      serviceCenter.dataService = self;
      ...
  }
  return self;
}
@end
</pre>
</li>
</ul>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/03/30/2015-03-30-如何抓取iOS设备的网络包/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/03/30/2015-03-30-如何抓取iOS设备的网络包/" itemprop="url">如何抓取iOS设备的网络包</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-03-30T00:00:00+08:00">
                2015-03-30
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>有时我们在开发iOS APP时，需要抓取iOS设备的网络包.下面根据我实际工作经验，给出如下几个思路:</p>
<h3 id="通过路由器"><a href="#通过路由器" class="headerlink" title="通过路由器"></a>通过路由器</h3><p>可以将iOS设备连接到一个可以抓包的路由器，抓取流向或流出iOS设备的包.</p>
<h3 id="通过MAC电脑"><a href="#通过MAC电脑" class="headerlink" title="通过MAC电脑"></a>通过MAC电脑</h3><p>可以通过MAC共享“因特网”特性，不管是“蓝牙”还是“以太网”，只要将iOS设备连接之，就可以抓取流向或流出iOS设备的包.</p>
<h3 id="远程虚拟接口"><a href="#远程虚拟接口" class="headerlink" title="远程虚拟接口"></a>远程虚拟接口</h3><p>MAC提供了Remote Virtual Interface, 允许用户将iOS网卡设备映射到本地，再通过抓包工具tcpdump就可以查看流向或流出iOS设备的包.</p>
<pre>
rvictl [-h][-l][-s \<udid1\> ... \<udidn\>][-x \<udid1\> ... \<udidn\>]

Remote Virtual Interface Tool starts and stops a remote packet capture instance 
for any set of attached mobile devices. It can also provide feedback on any attached 
devices that are currently relaying packets back to this host. 

Options:
    -l, -L        List currently active devices
    -s, -S        Start a device or set of devices
    -x, -X        Stop a device or set of devices
</udidn\></udid1\></udidn\></udid1\></pre>

<h4 id="具体操作流程"><a href="#具体操作流程" class="headerlink" title="具体操作流程:"></a>具体操作流程:</h4><ul>
<li>通过usb将iOS设备连接到MAC电脑.</li>
<li><p>获取到iOS设备的uuid，并通过rvictl映射</p>
  <pre>
  StarnetdeMacBook-Pro:PPDragDropBadgeView starnet$ rvictl -s 690a505acd5ea06233a2c10c173907c135070ace
Starting device 690a505acd5ea06233a2c10c173907c135070ace [SUCCEEDED] with interface rvi0
  </pre>
  可以看到系统将其映射到rvi0，通过ifconfig可以查看结果
  <pre>
  ...
  awdl0: flags=8843<up,broadcast,running,simplex,multicast> mtu 1452
          ether 92:6b:b4:55:73:9f 
          inet6 fe80::906b:b4ff:fe55:739f%awdl0 prefixlen 64 scopeid 0x9 
          nd6 options=1<performnud>
          media: autoselect
          status: active
rvi0: flags=3005<up,debug,link0,link1> mtu 0
...
  </up,debug,link0,link1></performnud></up,broadcast,running,simplex,multicast></pre>
</li>
<li><p>利用tcpdump进行抓包</p>
  <pre>
  tcpdump -i rvi0
  </pre>
</li>
<li><p>抓包结束后，通过rvictl停止映射</p>
  <pre>
  StarnetdeMacBook-Pro:PPDragDropBadgeView starnet$ rvictl -x 690a505acd5ea06233a2c10c173907c135070ace
Stopping device 690a505acd5ea06233a2c10c173907c135070ace [SUCCEEDED]
  </pre>
</li>
</ul>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/03/20/2015-03-20-XCode Copy Bundle Resources “Red”/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/03/20/2015-03-20-XCode Copy Bundle Resources “Red”/" itemprop="url">XCode Copy Bundle Resources “Red”</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-03-20T00:00:00+08:00">
                2015-03-20
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>本文将阐述XCode Copy Bundle Resources中为何会出现红色的文件资源.</p>
<p>XCode -&gt; Build Phases -&gt; Copy Bundle Resources, Copy Bundle Resources指定了需要拷贝的资源，包括xib、png、strings等等，如果app允许后发现资源不存在，则可以到此处查看，可能会发现相应资源为红色，以前了解到的是相应资源不存在，而今天遇到一件坑爹的事，发现资源明明存在，而且重新导入还是红色，于是查了下，得到如下信息：</p>
<pre>
In my experience with Xcode 4.6.3, the english version is required—localized resources showed red until the English localization was enabled in the resource's File inspector window.
</pre>

<p>尝试把红色xib资源的英文localized勾选上，神奇地发现正常，真是坑啊</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://smallmuou.gitee.io/blog/blog/2015/03/19/2015-03-19-InAppSettings的使用/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="smallmuou">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="smallmuou's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/blog/2015/03/19/2015-03-19-InAppSettings的使用/" itemprop="url">InAppSettings的使用</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-03-19T00:00:00+08:00">
                2015-03-19
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/IOS/" itemprop="url" rel="index">
                    <span itemprop="name">IOS</span>
                  </a>
                </span>

                
                
              
            </span>
          

          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>InAppSettings为APP提供了Settings的快捷化构建，只需少量代码就可以实现复杂的设置界面，下面来阐述如何使用InAppSettings.</p>
<h2 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h2><ul>
<li>包含头文件<pre>
\#import "IASKAppSettingsViewController.h"
</pre></li>
<li>添加Settings.bundle<pre>
"新建"->"Resource"->"Settings Bundle"
</pre></li>
<li>初始化Controller并呈现<br><pre><br>IASKAppSettingsViewController<em> vc = [[IASKAppSettingsViewController alloc] initWithNibName:@”IASKAppSettingsView” bundle:nil];<br>UINavigationController </em>navController = [[UINavigationController alloc] initWithRootViewController:vc];<br>[self presentViewController:navController animated:YES completion:^{</pre></li>
</ul>
<p>}];<br></p>
<h2 id="Settings-bundle"><a href="#Settings-bundle" class="headerlink" title="Settings.bundle"></a>Settings.bundle</h2><p>Settings.bundle至少包含一个Root.plist</p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
  </section>

  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/blog/page/17/"><i class="fa fa-angle-left"></i></a><a class="page-number" href="/blog/">1</a><span class="space">&hellip;</span><a class="page-number" href="/blog/page/17/">17</a><span class="page-number current">18</span><a class="page-number" href="/blog/page/19/">19</a><a class="page-number" href="/blog/page/20/">20</a><a class="extend next" rel="next" href="/blog/page/19/"><i class="fa fa-angle-right"></i></a>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">smallmuou</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives/">
              
                  <span class="site-state-item-count">197</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog/categories/index.html">
                  <span class="site-state-item-count">12</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/smallmuou" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-globe"></i>GitHub</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">smallmuou</span>

  
</div>

    <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

    <span id="busuanzi_container_site_pv">总访问量<span id="busuanzi_value_site_pv"></span>次</span>
    <span class="post-meta-divider">|</span>



  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  

  

  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
